<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>eBookCafe</title>
        <link rel="stylesheet" type="text/css" href="style.css" />
        <script type="text/javascript" src="functions.js"></script>
    </head>
    <body class="home blog logged-in">

        <div id="wrapper" class="hfeed">

            <div id="header">
                <div id="masthead">
                    <div id="branding" role="banner">
                        <h1 id="site-title">
                            <span>
                                <a href="index.jsp" title="eBookCafe" rel="home">eBookCafe</a>
                            </span>
                        </h1>

<!-- Start login box or "welcome" message -->
<div id="site-description">
    <% session.setAttribute("currentPage", request.getRequestURL()+"?"+request.getQueryString()); %>
    <% if(session.getAttribute( "statusMessageL" ) != null){ %>
        <%= session.getAttribute( "statusMessageL" ) %><br>
    <% } %>
    <% if(session.getAttribute( "loggedin_username" ) != null){ %>
        Welcome <%= session.getAttribute( "loggedin_username" ) %>. Click <a href="dologout.jsp">here</a> to log out.
           <% } else{ %>
       <form action="dologin.jsp" method=post>
           <input type="text" name="username" value="Username" size=20  maxlength=50>
           <input type="password" name="password" value="password" size=20  maxlength=20>
           <% String url = (request.getRequestURL()+"?"+request.getQueryString()); %>
           <input type="hidden" name="url" value=" <%= url %> ">
           <input type="submit" value="Login">
       </form>
            <%} %>
</div>
<!-- End login box or "welcome" message -->

                        <img src="bookBanner.jpg" width="940" height="150" alt="" />
                    </div><!-- #branding -->

                    <div id="access" role="navigation">
                        <div class="menu">
                            <ul>
                                <li class="page_item page-item-69"><a href="index.jsp" title="Home">Home</a></li>
                                <li class="page_item page-item-69"><a href="wishlist.jsp" title="Blank1">Wishlists</a></li>
                                <li class="page_item page-item-69"><a href="checkout.jsp" title="Blank1">Checkout</a></li>
                                <li class="page_item page-item-69"><a href="tracking.jsp" title="Blank1">Track</a></li>
                                <li class="page_item page-item-69"><a href="register.jsp" title="Blank1">Register</a></li>
                                <%
                                if(session.getAttribute("loggedin_username") != null){
                                    String userAdmin = (String) session.getAttribute("loggedin_username");
                                    if(userAdmin.contains("admin")){
                                        %><li class="page_item page-item-69"><a href="adminPage.jsp" title="Blank1">Admin Page</a></li><%
                                    }
                                }
                                %>
                            </ul>
                        </div>
                    </div><!-- #access -->
                </div><!-- #masthead -->
            </div><!-- #header -->
            
            <div id="main">